package com.ruoyi.record.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 销售管理对象 sales_record
 * 
 * @author yx
 * @date 2024-12-19
 */
public class SalesRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Long recordId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private String recordOrder;

    /** 商品id */
    @Excel(name = "商品id")
    private Long recordGoods;

    /** 商品名 */
    @Excel(name = "商品名")
    private String recordName;

    /** 售出数量 */
    @Excel(name = "售出数量")
    private Long recordNum;

    /** 总价 */
    @Excel(name = "总价")
    private BigDecimal recordPrice;

    /** 销售人员id */
    @Excel(name = "销售人员id")
    private Long recordSalesperson;

    /** 订单日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordDate;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setRecordOrder(String recordOrder) 
    {
        this.recordOrder = recordOrder;
    }

    public String getRecordOrder() 
    {
        return recordOrder;
    }
    public void setRecordGoods(Long recordGoods) 
    {
        this.recordGoods = recordGoods;
    }

    public Long getRecordGoods() 
    {
        return recordGoods;
    }
    public void setRecordName(String recordName) 
    {
        this.recordName = recordName;
    }

    public String getRecordName() 
    {
        return recordName;
    }
    public void setRecordNum(Long recordNum) 
    {
        this.recordNum = recordNum;
    }

    public Long getRecordNum() 
    {
        return recordNum;
    }
    public void setRecordPrice(BigDecimal recordPrice) 
    {
        this.recordPrice = recordPrice;
    }

    public BigDecimal getRecordPrice() 
    {
        return recordPrice;
    }
    public void setRecordSalesperson(Long recordSalesperson) 
    {
        this.recordSalesperson = recordSalesperson;
    }

    public Long getRecordSalesperson() 
    {
        return recordSalesperson;
    }
    public void setRecordDate(Date recordDate) 
    {
        this.recordDate = recordDate;
    }

    public Date getRecordDate() 
    {
        return recordDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("recordOrder", getRecordOrder())
            .append("recordGoods", getRecordGoods())
            .append("recordName", getRecordName())
            .append("recordNum", getRecordNum())
            .append("recordPrice", getRecordPrice())
            .append("recordSalesperson", getRecordSalesperson())
            .append("recordDate", getRecordDate())
            .toString();
    }
}
